// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_fk;

import android.content.Context;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.view.*;

import com.nnee.p_pr.p_app.cls_PrisApp;

// Referenced classes of package com.nnee.p_fk:
//            ActivityEx, k, f, d, 
//            h

class cls_a
    implements android.view.LayoutInflater.Factory
{

    public cls_a(cls_ActivityEx activityex)
    {
    	super();
        a = activityex;
        
        c = cls_k.a(activityex.getApplicationContext());
        String s = cls_PrisApp.a().A();
        if(!activityex.getPackageName().equals(s))
        {
            cls_h h = a(s);
            c.a(h);
        }
    }

    private cls_h a(String s)
    {
        Object obj = null;
        if(!TextUtils.isEmpty(s)) {
        	if(s.matches("pris\\.skin\\..*"))
            {
                Object obj1;
                obj1 = new cls_f(a, s);
                obj = obj1;
            } else
            if(s.matches("internal\\.skin\\..*"))
                obj = new cls_d(a);
        }
 
        return ((cls_h) (obj));
 
    }

    public View onCreateView(String s, Context context, AttributeSet attributeset)
    {
    	View view1=null;
        String as[];
        int i;
        int j;
        View view;
        b = (LayoutInflater)context.getSystemService("layout_inflater");
        as = cls_ActivityEx.q();
        i = as.length;
        j = 0;
        view = null;
while(true)
{
        if(view != null || j >= i)
        {
             
            if(view == null)
                view = null;
            else
                c.a(view, attributeset);
            return view;
        }

            if(-1 != s.indexOf('.'))
                {
            	try {
					view1 = this.b.createView(s, null, attributeset);
				} catch (InflateException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				} catch (ClassNotFoundException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
                view = view1;
                }
            else
            {
            try {
				view = this.b.createView(s, as[j], attributeset);
			} catch (InflateException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (ClassNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
            }
          
         
        j++;
}
    }

    final cls_ActivityEx a;
    private LayoutInflater b;
    private cls_k c;
}
